using Acme.BookStore.Lodgings;
using Acme.BookStore.Captchas;
using Acme.BookStore.RBAC;
using Acme.BookStore.RoomNos;
using Acme.BookStore.RoomTypes;
using Acme.BookStore.Users;
using AutoMapper;
using Acme.BookStore.Goods;
using Acme.BookStore.Dishes;
using Acme.BookStore.DishesGroupings;
using Acme.BookStore.Order;
using Acme.BookStore.HousingPriceplan;
using Acme.BookStore.StoreManagements;
using Acme.BookStore.ClassifyManages;
using Acme.BookStore.ProductLabelss;
using Acme.BookStore.ProductSettingss;
using Acme.BookStore.ClientInfos;
using Acme.BookStore.ReserveInformations;
using Acme.BookStore.BasicInformations;
using Acme.BookStore.ShoppingCartServer;
using System.Collections.Generic;
using Acme.BookStore.PolymerizationGoodss;
using Acme.BookStore.MerchantManagements;
using Acme.BookStore.IReservationss;

namespace Acme.BookStore;

public class BookStoreApplicationAutoMapperProfile : Profile
{
    public BookStoreApplicationAutoMapperProfile()
    {
        /* You can configure your AutoMapper mapping configuration here.
         * Alternatively, you can split your mapping configurations
         * into multiple profile classes for a better organization. */
       
        CreateMap<User, UserInfoDTO>().ReverseMap();
        CreateMap<RoomType, RoomTypeDTO>().ReverseMap();    
       CreateMap<RoomNumber,RoomNoDTO>().ReverseMap();
        CreateMap<RoomType, RoomTypeUpdateDTO>().ReverseMap();
        CreateMap<RoomNumber,RoomNoUpdateDTO>().ReverseMap();
       CreateMap<Lodging, LodgingDTO>().ReverseMap();
       CreateMap<Lodging, LodgingShowDTO>().ReverseMap();
        CreateMap<Captcha, CaptchaDTO>().ReverseMap();
        CreateMap<GoodsTypeInfor, GoodsTypeDTO>().ReverseMap();
        CreateMap<DishesInfo, DishesDTO>().ReverseMap();
        CreateMap<DishesGrouping, DishesGroupingDTO>().ReverseMap();
        CreateMap<Reservations, OrderAddDTO>().ReverseMap();
        CreateMap<GoodsInfor, ProductDto>().ReverseMap();
        CreateMap<RatePlans,IHousingAddDTO>().ReverseMap();
        CreateMap<DishesInfo, UpdateDishesDTO>().ReverseMap();
        CreateMap<RatePlans, IHousingUpdateDTO>().ReverseMap();
        CreateMap<StoreManagement,StoreMangementAddDTO>().ReverseMap();
        CreateMap<ClassifyManage, ClassifyManageDTO>().ReverseMap();
        CreateMap<ClassifyManage, ClassifyManageUpdateDTO>().ReverseMap();
        CreateMap<ProductLabels, ProductLabelsDTO>().ReverseMap();
        CreateMap<ClientInfo,ClientInfoDTO>().ReverseMap();
        CreateMap<ProductSettings, ProductSettingsDTO>().ReverseMap();
        CreateMap<ReserveInformation, ReserveInformationUpdateDTO>().ReverseMap();
        CreateMap<ReserveInformation, ReserveInformationDTO>().ReverseMap();
        CreateMap<BasicInformation, BasicInformationDTO>().ReverseMap();

        CreateMap<UserClientsDTO, UserClients>().ReverseMap();
        CreateMap<ShoppingCartDTO, ShoppingCart>().ReverseMap();
        
        CreateMap<PolymerizationGoods, PolymerizationGoodsUpdateDTO>().ReverseMap();
        CreateMap<PolymerizationGoods, PolymerizationGoodsDTO>().ReverseMap();
        CreateMap<MerchantManagement, MerchantManagementDTO>().ReverseMap();
        CreateMap<MerchantManagement, MerchantManagementupdateDTO>().ReverseMap();



        CreateMap<UserClienInforDTO, ClientInfo>().ReverseMap();
        CreateMap<InsertReservationsDTO, Reservations>().ReverseMap();
    }
}
